package com.ityuan.springcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import com.ityuan.springcloud.client.user.entity.User;
import com.ityuan.springcloud.service.UserService;

@RestController
public class UserController {
	@Autowired
	private UserService userService;
	
	@GetMapping(value = "/user/get/{id}")
	public User getById(@PathVariable("id") Long id) {
		return this.userService.getUserById(id);
	}
}
